
<h3 class="page-header">视频列表
<a href="<?= URL::site('classvideo/add');?>" class="ajax-click">+</a>
</h3>

<ul class="media-list">
<?php foreach($list as $item): ?>
    <li class="media">
        <div class="media-left">
            <img src="<?= $item['pic'] ?>?x-oss-process=image/resize,m_fill,h_112,w_200">
        </div>
        <div class="media-body">
            <h4 class="media-heading"><?= $item['video_title'] ?></h4>
            <div class="text-muted max-line1"><?= date('Y-m-d H:i:s', $item['edit_time']) ?></div>
            <input style="width:500px;" type="text" id="url-<?= $item['id'] ?>" value="<?= $item['url'] ?>" readonly >
            <p class="text-muted summary"><?= $item['desc'] ?></p>

            <!-- 
    	    <a href="<?= URL::site('classvideo/edit')?>?id=<?= $item['id'] ?>" class="btn btn-info btn-xs ajax-click">修改</a>
    	     -->
   
    	   <input type="button" onClick="jsCopy(<?= $item['id'] ?>)" class="btn btn-info btn-xs" value="点击复制地址" />
    	    
        </div>
    </li>
<?php endforeach; ?>
</ul>

<?= $pager ?>

<script type="text/javascript">
    function jsCopy(id){  
        var e=document.getElementById("url-"+id);//对象是copy-num1  
        e.select(); //选择对象  
        document.execCommand("Copy"); //执行浏览器复制命令  
        alert("复制成功");  
    }  
</script>









